{
    "position": "top",
	"height": 28,
	"width": 1600,
	"spacing": 10,
	"layer": "top",
	"margin-top": 5,

    "modules-left": [ "hyprland/workspaces", "hyprland/window"],
    "modules-center": ["custom/clock","hyprland/language","custom/weather","battery"],
    "modules-right": ["tray", "disk",  "cpu", "memory","pulseaudio", "custom/powermenu" ],

	"custom/menu": {
			"format": "{icon}",
			"format-icons": "",
			"on-click": "wofi --show drun -c ~/.config/wofi/config -s /home/darkside/.config/wofi/style.css",
			"escape": true,
			"tooltip": false
		},

	"hyprland/workspaces": {
		"format": "{icon}",
		"on-click": "activate",
		"format-icons": {
			"1": "",
			"2": "",
			"3": "",
			"4": "",
			"5": ""
},

		"tooltip": false,
        "persistent_workspaces": {
                "*": 5
            }
	},

	"hyprland/window": {
		"format": "{class}",
		"separate-outputs": false,
	},


	"custom/cava": {
		"format": "{}",
		"interval": 1,
		"exec": "~/.config/hypr/themes/hypr_void/scripts/cava.sh",
		"tooltip": false
	},
	"custom/cmus": {
		"format": "{icon}  {}",
		"format-icons": {
		"default": [""]
		},
		"max-length": 45,
		"interval": 1,
		"exec": "cmus-remote -C \"format_print '%F'\"",
		"exec-if": "pgrep cmus",
		"on-click": "cmus-remote -u",
		"on-scroll-up": "cmus-remote --next",
		"on-scroll-down": "cmus-remote --prev",
		"escape": true,
		"tooltip": false
	},

	"custom/games": {
		"format": "󰊗",
		"on-click": "--",
	},



    "tray": {
		"icon-size": 15,
		"spacing": 10
	},

	"custom/weather": {
		"format": " {}",
		 //"format": "{}",
		"interval": 10,
		"exec": "~/.config/hypr/scripts/weather.sh",
		"tooltip": false
	},

	"pulseaudio": {
		"scroll-step": 5,
		"format": "{icon} {volume}%",
		"format-icons": {
		"default": ["", "", ""]
		},
		"on-click": "pavucontrol",
		"tooltip": false
	},

	"hyprland/language": {
		"format": "{}",
		"format-en": "EN",
		"format-ru": "RU",
	},
	
"custom/powermenu": {
	"format": "{icon}",
	"format-icons": "",
	"on-click":"/home/darkside/.config/hypr/scripts/powermenu.sh",
	"escape": true,
	"tooltip":false,
		},

 	"cpu": {
		"format": "  {usage}%",
		"tooltip": false
    },


	"memory": {
		"format": " {}%"
	},

	"custom/clock": {
		"exec": "date +'%H:%M'",
		"interval": 1,
		"tooltip": false,
		//"on-click": "alacritty -e 'calcurse'"
	},
        
        "escape": true,
        "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
    }



   "disk": {
     "format": "  {free}" 
    },
    


 "temperature": {
    // "thermal-zone": 2,
    // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
    // "critical-threshold": 80,
    // "format-critical": "{temperatureC}°C ",
    "format": "{temperatureC}°C "
},


"battery": {
    "format": "{icon},{capacity}%",
    "states": {
        "good": [100, 95],
        "warning": [30, 20],
        "critical": [15, 0]
    },
    "critical_warning": {
        "enabled": true,
        "threshold": 5
    },
    "icons": {
        "adapter": "",
        "full": "",
        "good": "",
        "warning": "",
        "critical": "",
        "empty": "",
    }
},
